<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div id="section_watcher" class="pricetabbody pricetype0">
	<c:forEach var="inflowProducts" items="${baseProduct.inflowProducts }" varStatus="i">
	<div class="yui3-g inflowInfo_${i.index }"  style="display:none;">
		<div class="yui3-u-1-2">
	    	<div class="pad">
		        <h3 class="notopmargin">${util:siteName(inflowProducts.siteType)} 가격 히스토리</h3>
		      	<table class="product_pane" width="100%"> 
					<thead>
			        	<tr>
				            <th width="40%">종류</th>
				            <th width="26%">가격</th>
				            <th class="" width="34%">시간</th>
			          	</tr>
			        </thead>
		        	<tbody>
			        	<tr>
				            <td>현재</td>
				            <td><fmt:formatNumber  value="${inflowProducts.presentPrice}" pattern="#,###"/>원</td>
				            <td><fmt:formatDate value="${inflowProducts.updateDateTime}" pattern="yyyy-MM-dd"/></td>
		          		</tr>
		            	<tr>
							<td>정가</td>
			              	<td><fmt:formatNumber  value="${inflowProducts.fixedPrice}" pattern="#,###"/>원</td>
				            <td><fmt:formatDate value="${inflowProducts.updateDateTime}" pattern="yyyy-MM-dd"/></td>
		            	</tr>
		              	<tr>
							<td>최고가</td>
			              	<td><fmt:formatNumber  value="${inflowProducts.maximumPrice}" pattern="#,###"/>원</td>
				            <td><fmt:formatDate value="${inflowProducts.updateDateTime}" pattern="yyyy-MM-dd"/></td>
		            	</tr>
		            	<tr>
							<td>최저가</td>
			              	<td><fmt:formatNumber  value="${inflowProducts.minimumPrice}" pattern="#,###"/>원</td>
				            <td><fmt:formatDate value="${inflowProducts.updateDateTime}" pattern="yyyy-MM-dd"/></td>
		            	</tr>
		        	</tbody>
		        </table>
		     	<p class="smalltext grey">* since Aug 27, 2013. <br/>+ of the last 50 price changes</p>
			</div>
	  	</div>
	    <div class="yui3-u-1-2">
			<div class="pad">
				<h3 class="notopmargin">Last 5 price changes</h3>
	        	<table class="history_list product_pane">
		          	<thead>
						<tr>
		              		<th width="160">Date</th>
		              		<th width="60" class="rightAlign">Price</th>
		            	</tr>
					</thead>
		          	<tbody>
		          	<c:forEach var="priceHistorie" items="${inflowProducts.priceHistories }" >
	   					<tr class=" ">
		                	<td nowrap="nowrap"><fmt:formatDate value="${priceHistorie.inputDateTime}" pattern="yyyy-MM-dd"/></td>
		                	<td class="rightAlign" nowrap="nowrap"><span class=""><fmt:formatNumber  value="${priceHistorie.price}" pattern="#,###"/>원</span></td>
		              	</tr>
					</c:forEach>   		
		          	</tbody>
	        	</table>
			</div>
		</div>
	</div>
	</c:forEach>
	<p class="msg_bar"><small>This is the price charged for New products when Amazon itself is the seller.</small></p>
</div>